package com.quanyue.haircut.shop.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Table;
import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@Table
public class CouponDetail {
    @Column(name = "id")
    @ApiModelProperty(required = true, value = "用户优惠券Id")
    private Integer id;
    @Column(name = "coupon_name")
    @ApiModelProperty(required = true, value = "优惠券名称")
    private String couponName;
    @Column(name = "coupon_type")
    @ApiModelProperty(required = true, value = "优惠券类型")
    private String couponType;
    @Column(name = "discount")
    @ApiModelProperty(required = true, value = "折扣率")
    private String discount;
    @Column(name = "least")
    @ApiModelProperty(required = true, value = "满减最低消费")
    private BigDecimal least;
    @Column(name = "save")
    @ApiModelProperty(required = true, value = "满减金额")
    private BigDecimal save;
    @Column(name = "expire_time")
    @ApiModelProperty(required = true, value = "到期时间")
    private LocalDateTime expireTime;
    @Column(name = "shop_name")
    @ApiModelProperty(required = true, value = "店铺名称")
    private String shopName;
}
